MA
action

[Ajuda

By Maxwillian, 26 de abr. de 2014 in Archived

script
5
689
MaxwillianM
26 de abril de 2014 às 13:44

como resolver esse bug apareceu de repente no meu servido gostaria de saber como resolver..

[26/04/2014 13:42:02] [Error - Action Interface]
[26/04/2014 13:42:02] data/actions/scripts/revive.lua:onUse
[26/04/2014 13:42:02] Description:
[26/04/2014 13:42:02] data/actions/scripts/revive.lua:32: attempt to call global 'onPokeHealthChange' (a nil value)
[26/04/2014 13:42:02] stack traceback:
[26/04/2014 13:42:02] data/actions/scripts/revive.lua:32: in function <data/actions/scripts/revive.lua:1>
[26/04/2014 13:42:17] [Error - Action Interface]
[26/04/2014 13:42:17] data/actions/scripts/revive.lua:onUse
[26/04/2014 13:42:17] Description:
[26/04/2014 13:42:17] data/actions/scripts/revive.lua:32: attempt to call global 'onPokeHealthChange' (a nil value)
[26/04/2014 13:42:17] stack traceback:
[26/04/2014 13:42:18] data/actions/scripts/revive.lua:32: in function <data/actions/scripts/revive.lua:1>
SlicerS
26 de abril de 2014 às 13:55

isso q da sair pegando scripts dos outros atoa... ta dizendo q n tens a funçao 'onPokeHealthChange' q eh uma funçao q eu fiz pro meu otc...

Edited Abril 26 by Slicer

MaxwillianM
26 de abril de 2014 às 14:01

Slicer

Não peguei nada de você ja veio com o servido '-'

peguei PDA by:bolz e editei normalmente

Wend llW
26 de abril de 2014 às 14:05

Toma testar ai::

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerStorageValue(cid, 990) >= 1 then
doPlayerSendCancel(cid, "You can't use revive during gym battles.")
return true
end
if getPlayerStorageValue(cid, 52481) >= 1 then
return doPlayerSendCancel(cid, "You can't do that while a duel.") --alterado v1.6
end
--
if item2.itemid <= 0 or not isPokeball(item2.itemid) then
doPlayerSendCancel(cid, "Please, use revive only on pokeballs.")
return true
end
for a, b in pairs (pokeballs) do
if item2.itemid == b.on or item2.itemid == b.off then --edited deixei igual ao do PXG
doTransformItem(item2.uid, b.on)
doSetItemAttribute(item2.uid, "hp", 1)
for c = 1, 15 do
local str = "move"..c
setCD(item2.uid, str, 0)
end
setCD(item2.uid, "control", 0)
setCD(item2.uid, "blink", 0) --alterado v1.6
doSendMagicEffect(getThingPos(cid), 13)
doRemoveItem(item.uid, 1)
doCureBallStatus(item2.uid, "all")
cleanBuffs2(item2.uid) --alterado v1.5
end
end
return true
end

Edited Abril 26 by AnnaFeeh

MaxwillianM
26 de abril de 2014 às 14:10

Resolvido..Podem fechar JHUHE valewwww